package com.itheima.strategy;

public class Test {
    //了解策略设计模式
    //需求餐馆支付会员
    //普通会员：9折，高级会员：8折
    //超级会员5折
    public static void main(String[] args) {
        Gustomer gustomer = new Gustomer();
        gustomer.setPay(new Pay());
        gustomer.pay(100);
        gustomer.setPay(new Zpay());
        gustomer.pay(100);
    }

}
